1 ================================================================================
2 WPF APPLICATION : VBWPFAnimationWhenDataChanged Project Overview
4 VBWPFAnimationWhenDataChanged Sample
6 ===============================================================================
8 /////////////////////////////////////////////////////////////////////////////
11 The sample demonstrates how to trigger animation when cell value in the datagrid
15 /////////////////////////////////////////////////////////////////////////////
18 1. create a style for DataGrid cell.
19 2. In the cell style, we add Binding.TargetUpdated event triggers.
20 3. When the trigger condition is fulfilled, start the animation.
21 4. In the AutoGeneratingColumn event handler, we set NotifyOnTargetUpdated
22 to true in order to trigger TargetUpdated event.
23 5. In a button click event handler, apply the cell style to each column.
28 /////////////////////////////////////////////////////////////////////////////
32 /////////////////////////////////////////////////////////////////////////////
35 Step1. Build the sample project in Visual Studio 2008.
37 Step2. Start Without Debugging, and the mian window of the project will
40 Step3. Select one item of the data grid, and the data will show in the two
43 Step4. Change the value in the textboxes, and the value in the data grid
44 item will change correspond with the textboxes.
46 Step5. Click the button in the bottom of the window, and then repeat Step4,
47 and it will show an animation when the data changes.
48 /////////////////////////////////////////////////////////////////////////////